# -*- coding:utf-8 -*-

"""
    运维中心
"""

from flask import Flask,render_template
import config as config
import config.DBMgr as DBMgr
import pymysql
import json

app = config.app


@app.route('/operationcenter/')
def operationcenter():
    sql = config.db
    sql.execute(r'select * from server_publish_config')
    info = sql.fetchall()
    jret = json.dumps(info, ensure_ascii=False)
    print(jret)
    # servers = {
    #     's_list': info
    # }
    return 'Hello Operation Center'
    
